import request from '@/utils/request'


// 查询登录日志列表
export function startAnalysis(data) {
  return request({
    url: '/fatigue/dashboard/start',
    method: 'post',
    data: data
  })
}

export function stopAnalysis(data) {
  return request({
    url: '/fatigue/dashboard/stop',
    method: 'post',
    data: data
  })
}

export function logs(query) {
  return request({
    url: '/fatigue/detection_log/list',
    method: 'get',
    params: query
  })
}

export function charts() {
  return request({
    url: '/fatigue/detection_log/cur/pie_sta',
    method: 'get',
    // params: query
  })
}






